<?php
/**
 * Description:
 *
 * @author      Eden
 * @datetime    2017/2/4 11:51
 * @copyright   WuHan HuQi Technology Co.,Ltd.
 * @url         http://cnhuqi.com
 */

class System_Model extends WX_Model
{
    /**
     * 初始化
     */
    public function __construct()
    {
        parent::__construct();
    }

    /**
     * 关于我们
     * @return mixed
     */
    public function about()
    {
        try {
            $db = clone($this->db);
            $q = $db->where(['use' => 'mobile', 'key' => 'description'])->get('setting');
            $row = $q->row_array();
            if ($row) {
                $content = json_decode($row['value'], true);
                return $content['content'];
            }

            return '';
        } catch(Exception $e) {
            $this->setError('查询失败');
        }
    }
}
